// @ts-ignore
/* eslint-disable */
import request from "@/libs/request";

/** getUserQuestionsByDate GET /api/question/history/list */
export async function getUserQuestionsByDateUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getUserQuestionsByDateUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListQuestionHistoryVO_>(
    "/api/question/history/list",
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** recordQuestionView POST /api/question/history/record */
export async function recordQuestionViewUsingPost(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.recordQuestionViewUsingPOSTParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>("/api/question/history/record", {
    method: "POST",
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getYearlyQuestionCount GET /api/question/history/yearly/count */
export async function getYearlyQuestionCountUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getYearlyQuestionCountUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseListDailyQuestionCountVO_>(
    "/api/question/history/yearly/count",
    {
      method: "GET",
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
